import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';

class StandardizationFacilityMenuType implements ChoiceBean {
  StandardizationFacilityMenuType(this.name);

  final String name;

  bool isChecked = false;

  static final construction = StandardizationFacilityMenuType('设备设施建设');
  static final acceptance = StandardizationFacilityMenuType('设备设施验收');
  static final run = StandardizationFacilityMenuType('设备设施运行');
  static final fix = StandardizationFacilityMenuType('设备设施检维修');
  static final check = StandardizationFacilityMenuType('检验与废拆');
  static List<StandardizationFacilityMenuType> get all => [construction, acceptance, run, fix, check];

  @override
  String getId() => name;

  @override
  String getShowName() => name;

  @override
  bool getIsChecked() => isChecked;

  @override
  void setIsChecked(bool isChecked) {
    this.isChecked = isChecked;
  }

  String get path {
    switch (name) {
      case '设备设施建设':
        return '/standard//equipment/getInfrastructureConstructionPage';
      case '设备设施验收':
        return '/standard//equipmentCheck/getInfrastructureCheckPage';
      case '设备设施运行':
        return '/standard//equipmentCheck/getInfrastructureRunPage';
      case '设备设施检维修':
        return '/standard//equipmentMaintenance/getFacilityConstructionAndMaintenancePage';
      case '检验与废拆':
        return '/standard//equipmentDismantling/getInspectionAndDismantlingPage';
      default:
        return '';
    }
  }
}
